package com.pro.springbootpro.service.impl;

import com.pro.springbootpro.entity.SysRole;
import com.pro.springbootpro.mapper.SysRoleMapper;
import com.pro.springbootpro.service.ISysRoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author DJR (1210843430@qq.com)
 */
@Service
@Slf4j
public class SysRoleServiceImpl implements ISysRoleService {
    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> findRoleByUserId(String userId) {
        return sysRoleMapper.findRoleByUserId(userId);
    }
}
